﻿@using ZBJF.Warranty.BLL
@model ZBJF.Warranty.Model.InsuranceWarrantyRecord
@{
    var seller = ServiceFactory.SellersServiceInstance.LoadByID(Model.InsuranceOrder.SaleVendorId ?? 0);
    var parentOrganization = ServiceFactory.SellersOrganizationServiceInstance.LoadParentOrganization(seller != null ? seller.SellersOrganizationId : 0);
}
<h4>销售商信息</h4>
<table class="table table-responsive table-bordered table-hover">
    <tr>
        <th>名称</th>
        <th>所属一级机构</th>
        <th>所属二级机构</th>
    </tr>
    <tr>
        <td>
            @(seller != null ? seller.SellersName : "")
        </td>
        <td>
            @(seller != null ? seller.SellersOrganization.OrganizationName : "")
        </td>
        <td>
            @(parentOrganization != null ? parentOrganization.OrganizationName : "")
        </td>
    </tr>
</table>